<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>data-bind</title>
</head>
<body>
<h1>
    <a href="${pageContext.request.contextPath}/user/findUser?name=jack&age=20">findUser</a>
</h1>
<hr>
<form action="${pageContext.request.contextPath}/user/addUser" method="post">
    <div>
        <label for="username">username:</label>
        <input type="text" id="username" name="username">
    </div>
    <div>
        <label for="password">password:</label>
        <input type="password" id="password" name="password">
    </div>
    <div>
        <button type="submit">注册</button>
    </div>
</form>
<hr>
<form action="${pageContext.request.contextPath}/user/collection" method="post">
    <div>
        list:
        <input type="text" name="list[0]">
        <input type="text" name="list[1]">
        <input type="text" name="list[2]">
    </div>
    <div>
        map:
        <input type="text" name="map['A']">
        <input type="text" name="map['B']">
    </div>
    <div>
        <button type="submit">发送</button>
    </div>
</form>
</body>
</html>
